Repository navigation
fix(id): validate /input in the plain world join pump (#3134) - #3731
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 42 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
6e31d6a to
d886ce6
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Agent note — shepherded: rebased onto main, tests green (queue task 8419, lane I)
|
Fixes #3134. Queue task 5640.
The plain
id world joinpump bypassed the shared line grammar for/input: it sent unvalidated hex to the server and posted a bare/inputas chat. This routes the plain pump through the same mapping shape as command mode:pump_plain()inpkgs/id/src/commands/world.rs: non-/inputlines are sent as chat unchanged;/inputlines go throughworld_line::parse_line— valid hex is normalized (uppercase → lowercase) into theinputframe, bare/non-hex/odd-length/inputis answered locally withusage: /input <hex>and sends no frame.PumpLineresult for both pump paths.Tests (run on the laptop, per fleet CI-first/laptop policy):
cargo test --manifest-path pkgs/id/Cargo.toml --lib commands::world::tests --locked— 8 passed, including the new regression testthe_plain_pump_validates_input_and_preserves_chat(valid, uppercase, two-space, non-hex, odd-length, bare/input, ordinary chat).cargo test --manifest-path pkgs/id/Cargo.toml --lib world_line::tests --locked— 5 passed.--jsonoutput unchanged; no behaviour change beyond both pump paths obeying the shared grammar.Need help on this PR? Tag
@codesmith-botwith what you need.